<!-- templates/blog/post_edit.html -->
<!DOCTYPE html>
<html>
<head>
    <title>新建博客文章</title>
</head>
<body>
    <h1>{% if form.instance.pk %}更新{% else %}Create{% endif %} 新建新的文章</h1>
    <form method="post">
        {% csrf_token %}
        {{ form.as_p }}
        <button type="submit">提交</button>
    </form>
    <a href="{% url 'post_list' %}">取消</a>
</body>
</html>